package com.app.shop.service.shop;


import com.app.shop.entity.WgCommodity;
import com.app.shop.entity.WgPicture;
import com.app.shop.entity.query.WgPictureQuery;
import com.app.shop.util.SysModel;
import com.github.pagehelper.Page;

import java.util.List;

/**
 * 图片资源服务
 */
public interface WgPictureService {

    /**
     * 图片查询列表
     * @param wgPictureQuery
     * @return
     */
    public Page<WgPicture> getWgPictureList(WgPictureQuery wgPictureQuery);

    /**
     * 所有图片列表
     * @param wgPictureQuery
     * @return
     */
    public List<WgPicture> getWgPictureAllList(WgPictureQuery wgPictureQuery);

    /**
     * 添加图片资源
     * @param wgPicture
     */
    void addPicture(WgPicture wgPicture);

    /**
     * 删除图片资源
     * @param wgPicture
     * @return
     */
    SysModel editPictureDelete(WgPicture wgPicture);

    /**
     * 将图片资源载入内存
     * @return
     */
    void initWgPictureAllList();
}
